﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AppTrans
{
    public static class FirstDay
    {

        public static DateTime firsDay(int CountMonth)
        {
                var yr = DateTime.Today.Year;
                var mth = DateTime.Today.Month;
                DateTime result = new DateTime(yr, mth, 1).AddMonths(-CountMonth);
                return result;
            }
    }

    }
